/**
 * Copyright (C) 2018-2020
 * All rights reserved, Designed By www.kaikeba.co

 */
package com.kkb.merchant.center.common.util;

import cn.hutool.core.date.DateTime;

/**
 * @ClassName OrderUtil
 * @Author hadoop
 **/
public class DateTimeUtil {



    /**
     * 获取精确到秒的时间戳
     *
     * @return
     **/
    public static int dateToTimestampT(DateTime date) {
        String timestamp = String.valueOf(date.getTime() / 1000);
        return Integer.valueOf(timestamp);
    }








}
